//1.0导入vue核心包
import Vue  from 'vue';
//2.0导入Vueroute
import vueRouter from  'vue-router';

//2.0导入App.vue的vue对象
import App from './App.vue';
//3.0 利用vue对象进行解析渲染
Vue.use(vueRouter);
import login from './components/account/login.vue';
import register from './components/account/register.vue';
var router =new vueRouter({
    routes:[
        {
          path:"/login",
          component:login
        },
        {
            path:"/register",
            component:register
        }
    ]
});
//使用mint ui
//导入css
import 'mint-ui/lib/style.css';
import mintui from 'mint-ui';
import '../statics/mui/css/mui.css'
//在vue使用
Vue.use(mintui);
new Vue({
    el:"#app",
    //render:function(creat){
    //    create(App)
    //}
    render:c =>c(App), //es6的函数写法 => goes to 语法
    router
});